# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=micro-tetris
pkgver=1.2.1
pkgrel=1
pkgdesc="Micro Tetris, based on 1989 IOCCC Obfuscated Tetris"
url="https://github.com/troglobit/tetris"
arch="all"
license="ISC"
source="$pkgname-$pkgver.tar.gz::https://github.com/troglobit/tetris/archive/$pkgver.tar.gz"

builddir="$srcdir"/tetris-$pkgver

prepare() {
	default_prepare
	sed -i -e "/install/s:bin/tetris:usr/bin/tetris:" Makefile
}

build() {
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="05859ddfbf4a333a3d190b1bdf116b64aa0de737ff966ba4bb5eb7df27663732aae847ec96e94a2f20ed7d800c2e4b5df1eb6c0d891b27cd31ddc1456002248e  micro-tetris-1.2.1.tar.gz"
